home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gsstate.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.8 KB  |  78 lines

  1. /* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gsstate.h,v 1.2 2000/09/19 19:00:32 lpd Exp $ */
  20. /* Public graphics state API */
  21.  
  22. #ifndef gsstate_INCLUDED
  23. #  define gsstate_INCLUDED
  24.  
  25. /* Opaque type for a graphics state */
  26. #ifndef gs_state_DEFINED
  27. #  define gs_state_DEFINED
  28. typedef struct gs_state_s gs_state;
  29. #endif
  30.  
  31. /* Initial allocation and freeing */
  32. gs_state *gs_state_alloc(P1(gs_memory_t *));    /* 0 if fails */
  33. int gs_state_free(P1(gs_state *));
  34.  
  35. /* Initialization, saving, restoring, and copying */
  36. int gs_gsave(P1(gs_state *)), gs_grestore(P1(gs_state *)), gs_grestoreall(P1(gs_state *));
  37. int gs_grestore_only(P1(gs_state *));
  38. int gs_gsave_for_save(P2(gs_state *, gs_state **)), gs_grestoreall_for_restore(P2(gs_state *, gs_state *));
  39. gs_state *gs_gstate(P1(gs_state *));
  40. gs_state *gs_state_copy(P2(gs_state *, gs_memory_t *));
  41. int gs_copygstate(P2(gs_state * /*to */ , const gs_state * /*from */ )),
  42.       gs_currentgstate(P2(gs_state * /*to */ , const gs_state * /*from */ )),
  43.       gs_setgstate(P2(gs_state * /*to */ , const gs_state * /*from */ ));
  44. int gs_initgraphics(P1(gs_state *));
  45.  
  46. /* Device control */
  47. #include "gsdevice.h"
  48.  
  49. /* Line parameters and quality */
  50. #include "gsline.h"
  51.  
  52. /* Color and gray */
  53. #include "gscolor.h"
  54.  
  55. /* Halftone screen */
  56. #include "gsht.h"
  57. #include "gscsel.h"
  58. int gs_setscreenphase(P4(gs_state *, int, int, gs_color_select_t));
  59. int gs_currentscreenphase(P3(const gs_state *, gs_int_point *,
  60.                  gs_color_select_t));
  61.  
  62. #define gs_sethalftonephase(pgs, px, py)\
  63.   gs_setscreenphase(pgs, px, py, gs_color_select_all)
  64. #define gs_currenthalftonephase(pgs, ppt)\
  65.   gs_currentscreenphase(pgs, ppt, 0)
  66. int gx_imager_setscreenphase(P4(gs_imager_state *, int, int,
  67.                 gs_color_select_t));
  68.  
  69. /* Miscellaneous */
  70. int gs_setfilladjust(P3(gs_state *, floatp, floatp));
  71. int gs_currentfilladjust(P2(const gs_state *, gs_point *));
  72. void gs_setlimitclamp(P2(gs_state *, bool));
  73. bool gs_currentlimitclamp(P1(const gs_state *));
  74. #include "gscpm.h"
  75. gs_in_cache_device_t gs_incachedevice(P1(const gs_state *));
  76.  
  77. #endif /* gsstate_INCLUDED */
  78.